<template>
	<ynet-field>
		<ynet-input-item
			ref="input11"
			type="bankCard"
			preview-type="text"
			value="6222 **** **** 1234"
			title="银行卡号"
			placeholder="投保人银行卡号"
			is-title-latent
			is-virtual-keyboard
		></ynet-input-item>
		<ynet-input-item
			ref="input10"
			preview-type="text"
			value="张**"
			title="真实姓名"
			placeholder="投保人姓名"
			is-title-latent
		></ynet-input-item>
	</ynet-field>
</template>
<script>
	import { Field, InputItem, NumberKeyboard, Icon } from 'ynet-mobile'
	export default {
		title: '标题浮动输入框',
		name: 'input-item-demo',
		components: {
			[Field.name]: Field,
			[InputItem.name]: InputItem,
			[NumberKeyboard.name]: NumberKeyboard,
			[Icon.name]: Icon
		},
		methods: {
			onClick(){
				console.log(`info clicked`)
			},
			onFakeInputFocus(){

			},
			onFakeInputBlur(){
				 this.scrollInputBack && this.scrollInputBack()
			}
		}
	}
</script>